#pragma once
#include "cocos2d.h"

using namespace cocos2d;

class RankLayer : public Layer
{
public:
	RankLayer();
	~RankLayer();

	static Vec2 rankPosition[5];
	static int rank[5];
	static Sprite* rankTurtles[5];
	
	virtual bool init();
	void changeRank(int* rankChange, float delay);
	void changeOverLap(int* overLap, float delay);

	CREATE_FUNC(RankLayer);
private:
	Sprite* rankRed;
	Sprite* rankYellow;
	Sprite* rankGreen;
	Sprite* rankBlue;
	Sprite* rankPurple;

	Sprite* boxes[4][4];
	static Vector<Sprite*> V;
};

